import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '是否完结',
    align:"center",
    dataIndex: 'isEnd_dictText'
   },
   {
    title: '审核阶段(四级)',
    align:"center",
    dataIndex: 'step'
   },
   {
    title: '审核意见',
    align:"center",
    dataIndex: 'opinion'
   },
   {
    title: '是否轮候',
    align:"center",
    dataIndex: 'isTurn_dictText'
   },
   {
    title: '外键,审核人uid',
    align:"center",
    dataIndex: 'checkPeople'
   },
   {
    title: '审核时间',
    align:"center",
    dataIndex: 'checkTime'
   },
   {
    title: '审核状态',
    align:"center",
    dataIndex: 'checkState_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '是否完结',
    field: 'isEnd',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入是否完结!'},
          ];
     },
  },
  {
    label: '审核阶段(四级)',
    field: 'step',
    component: 'InputNumber',
  },
  {
    label: '审核意见',
    field: 'opinion',
    component: 'Input',
  },
  {
    label: '是否轮候',
    field: 'isTurn',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
  },
  {
    label: '外键,审核人uid',
    field: 'checkPeople',
    component: 'Input',
  },
  {
    label: '审核时间',
    field: 'checkTime',
    component: 'Input',
  },
  {
    label: '审核状态',
    field: 'checkState',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"check_state"
     }
  },
];
